package com.bj.boot.actuator.info;

import org.springframework.boot.actuate.info.Info;
import org.springframework.boot.actuate.info.InfoContributor;
import org.springframework.stereotype.Component;

import java.util.Collections;

/**
 * @author shkstart
 * @create 2021-09-22 18:56
 */
@Component
public class AppInfoContributor implements InfoContributor {
    @Override
    public void contribute(Info.Builder builder) {
        builder.withDetail("msg","你好").
                withDetail("白健","name").
                withDetails(Collections.singletonMap("word","66660"));
    }
}
